package com.wudimeng.syll.constants;

//常亮配置文件
public class Constants {

	public final static String ENCODING = "utf-8";//定义默认的编码格式
    public final static String DATE_FORMAT = "yyyy-MM-dd";//定义默认日期格式
    public final static String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";//定义默认时间格式
    public final static String EMPTY_STRING = "";//定义默认的空字符串
    public static final String REGEX_CHECK_PHONE_NUMBER = "^1[3,4,5,6,7,8,9]\\d{9}$";
    public static final String REGEX_CHECK_ID_CARD_NO = "^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$";
    public static final String REGEX_CHECK_HTTP_URL = "^([hH][tT]{2}[pP]:\\/\\/|[hH][tT]{2}[pP][sS]:\\/\\/|www\\.)(([A-Za-z0-9-~]+)\\.)+([A-Za-z0-9-~\\/])+$";
    public static final String REGEX_CHECK_BUSINESS_NUMBER = "/(^(?:(?![IOZSV])[\\dA-Z]){2}\\d{6}(?:(?![IOZSV])[\\dA-Z]){10}$)|(^\\d{15}$)/";
    public static final String REGEX_CHECK_EXPRESS_CODE = "/^[0-9]{10,14}$|^(?=.*\\d+)(?!.*?([\\d])\\1{5})[\\d]{6}$/";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer EXPIRE_SECOND = 10;

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";
}
